/* Settings Page - Dracula Theme Consistent with Dashboard */

/* Use the same CSS variables as App.css for consistency */
.settings-page {
  padding: 24px;
  min-height: 100%;
  background-color: var(--darker-bg);
  color: var(--light-text);
  width: 100%;
  box-sizing: border-box;
}

/* Header Section - Consistent with Dashboard */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.header-content h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--light-text);
  margin: 0 0 8px 0;
}

.header-description {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
}

/* Settings Container - Sidebar Layout */
.settings-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  min-height: 500px;
}

/* Settings Sidebar */
.settings-sidebar {
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--gray-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
}

.settings-tab:hover {
  background-color: var(--current-line);
  color: var(--light-text);
}

.settings-tab.active {
  background-color: var(--primary-color);
  color: var(--background);
}

.tab-icon {
  font-size: 16px;
}

.tab-label {
  flex: 1;
}

/* Settings Content */
.settings-content {
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  min-height: 500px;
}

.settings-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--light-text);
  margin: 0 0 24px 0;
}

/* Setting Groups */
.setting-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background-color: var(--current-line);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.setting-item:hover {
  border-color: var(--primary-color);
}

.setting-info {
  flex: 1;
  min-width: 0;
}

.setting-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 4px;
}

.setting-description {
  font-size: 12px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.4;
}

.setting-control {
  margin-left: 16px;
  min-width: 120px;
}

/* Form Controls */
.setting-select,
.setting-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--dark-bg);
  color: var(--light-text);
  transition: all 0.2s ease;
}

.setting-select:focus,
.setting-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.2);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-text);
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--background);
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-item:last-child {
  border-bottom: none;
}

.about-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-text);
}

.about-value {
  font-size: 14px;
  color: var(--gray-text);
}

/* Settings Footer */
.settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Button Styles - Consistent with Dashboard */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  background-color: var(--current-line);
  color: var(--light-text);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--background);
  border-color: var(--primary-color);
}

.btn.primary:hover:not(:disabled) {
  background-color: #a278f0;
  border-color: #a278f0;
  box-shadow: 0 4px 12px rgba(189, 147, 249, 0.3);
}

.btn.secondary {
  background-color: var(--current-line);
  color: var(--light-text);
  border-color: var(--border-color);
}

.btn.secondary:hover:not(:disabled) {
  background-color: var(--background);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-page {
    padding: 16px;
  }

  .settings-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-sidebar {
    order: 2;
  }

  .settings-content {
    order: 1;
    padding: 16px;
  }

  .setting-item {
    flex-direction: column;
    gap: 12px;
  }

  .setting-control {
    margin-left: 0;
    width: 100%;
  }

  .settings-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .settings-page {
    padding: 12px;
  }

  .settings-content {
    padding: 12px;
  }

  .setting-item {
    padding: 12px;
  }

  .settings-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .tab-icon {
    font-size: 14px;
  }
}